package yxy.game.pm2.module.union.player;

import java.util.ArrayList;

import yxy.game.pm2.module.union.UnionContribution.ContributeType;

public class UnionPlayerContribution {

	// bean===========================================================================

	private ContributeType contribType;// 每日贡献的种类
	private long contribDaliy;// 每日贡献
	private long contribution;// 总贡献
	private ArrayList<String> box = new ArrayList<>();// 领过的宝箱

	public ContributeType getContribType() {
		return contribType;
	}

	public void setContribType(ContributeType contribType) {
		this.contribType = contribType;
	}

	public long getContribDaliy() {
		return contribDaliy;
	}

	public void setContribDaliy(long contribDaliy) {
		this.contribDaliy = contribDaliy;
	}

	public long getContribution() {
		return contribution;
	}

	public void setContribution(long contribution) {
		this.contribution = contribution;
	}

	public ArrayList<String> getBox() {
		return box;
	}

	public void setBox(ArrayList<String> box) {
		this.box = box;
	}

	// func===========================================================================

	protected void update() {
		getBox().clear();
		setContribType(ContributeType.NONE);
		setContribDaliy(0);
	}

	protected void reset() {
//		getBox().clear();
		setContribDaliy(0);
		setContribution(0);
	}

	static protected UnionPlayerContribution create() {
		UnionPlayerContribution contribution = new UnionPlayerContribution();
		contribution.setContribType(ContributeType.NONE);
		return contribution;
	}

}
